/**
 * @filename:SampleDetailServiceImpl 2022-03-09 07:00:40
 * @project com/lwl/blue  V1.0
 * Copyright(c) 2018 <a href=mailto:lanwenliang@yidianlife.com>蓝文良</a> Co. Ltd.
 * All right reserved.
 */
package com.lwl.blue.service.impl;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lwl.blue.commont.base.JsonResult;
import com.lwl.blue.commont.base.PageParam;
import com.lwl.blue.dao.SampleDetailDao;
import com.lwl.blue.entity.Sample;
import com.lwl.blue.entity.SampleDetail;
import com.lwl.blue.service.SampleDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>自定义serviceImpl写在这里</p>
 *
 * <p>说明： 样品单资料服务实现层</P>
 * @version: V1.0
 * @author: <a href=mailto:lanwenliang@yidianlife.com>蓝文良</a>
 *
 */
@Service
public class SampleDetailServiceImpl  extends ServiceImpl<SampleDetailDao, SampleDetail> implements SampleDetailService {
    @Resource
    SampleDetailDao sampleDetailDao;
    @Override
    public JsonResult<Page<SampleDetail>> pages(PageParam<SampleDetail> pageParam) {
        Page<SampleDetail> page = new Page<>(pageParam.getPageNum(), pageParam.getPageSize());
        return new JsonResult<Page<SampleDetail>>().success(sampleDetailDao.pages(page, pageParam.getParam()));
    }
}
